﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.UI.UserControls.Account
{
    public partial class Login : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Label1.Visible = false;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if ((textUserName.Text == "Jig") & (textPassword.Text == "punu"))
            {
                Response.Redirect("~/UI/Home.aspx");
            }
            else if ((textUserName.Text == "admin") & (textPassword.Text == "admin"))
            {
                Response.Redirect("~/UI/Pages/HAdmin.aspx");
            }
            else
            {
                Label1.Visible = true;
            }


        }
    }
}